#!/usr/bin/env python
# _*_ coding: utf-8 _*_
# @Time : 2025-03-13 17:34
# @Author : fanzf
# @Version：V 0.1
# @File : run.py
# @desc :
import logging
import os
import sys

from app import create_app
from waitress import serve

app = create_app()


if getattr(sys, 'frozen', False):
    os.chdir(sys._MEIPASS)
# 配置日志
# logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s', stream=sys.stdout)

if __name__ == '__main__':
    # logging.info('Starting Flask application with Waitress')
    serve(app, host='0.0.0.0', port=5000)


